<?php
declare (strict_types = 1);

namespace app\admin\controller;


use app\admin\model\OrderStatus;
use think\facade\Db;
use think\facade\Request;
use think\facade\View;

class Order
{
    public function order()
    {
        $dindan =  Request::get('order_sn','','trim,htmlspecialchars,strip_tags');
        $status =  Request::get('status',[],'trim,htmlspecialchars,strip_tags');
        $maxjia =  Request::get('maxjia','','trim,htmlspecialchars,strip_tags');
        $minjia =  Request::get('minjia','','trim,htmlspecialchars,strip_tags');
        $rt = OrderStatus::getStatue();
        $data = [
            'dindan'=>$dindan,
            'status'=>$status,
            'maxjia'=>$maxjia,
            'minjia'=>$minjia,
        ];
        $list= \app\admin\model\Order::dinDan($data,input('get.'));
            View::assign($data);
            View::assign('list',$list);
            View::assign('rt',$rt);

        return  View::fetch();
    }

}